package com.wanmait.studentmangers.service;
import com.wanmait.studentmangers.dao.UserinfoDao;
import com.wanmait.studentmangers.dao.UserinfoDaoImpl;
import com.wanmait.studentmangers.vo.Userinfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class UserinfoServiceImpl implements UserinfoService {
    @Autowired
    private UserinfoDao userinfoDao ;
    @Override
    public void insert(Userinfo userinfo) {
        userinfoDao.insert(userinfo);
    }

    @Override
    public boolean login(Userinfo userinfo) {
          boolean f =  userinfoDao.login(userinfo);
          return f;
    }

    @Override
    public List<Userinfo> getAll() {
        return userinfoDao.getAll();
    }

    @Override
    public void add(Userinfo userinfo) {

    }

    @Override
    public List<Userinfo> getList() {
        return null;
    }

}
